package com.darker.yygh.sms.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantPropertiesUtils implements InitializingBean {
    @Value("${tencent.sms.appid}")
    private int appid;
    @Value("${tencent.sms.appkey}")
    private  String appkey;
    @Value("${tencent.sms.templateId}")
    private   int templateId;
    @Value("${tencent.sms.appid}")


    public static int APPID;
    public static String APPKEY;
    public static int TEMPLATEID;



    @Override
    public void afterPropertiesSet() throws Exception {
        APPID=appid;
        APPKEY=appkey;
        TEMPLATEID=templateId;

    }
}
